/*
 * @Author: tanjiujiu 873768511@qq.com
 * @Date: 2024-03-26 09:17:01
 * @LastEditors: tanjiujiu 873768511@qq.com
 * @LastEditTime: 2024-03-26 14:25:04
 * @FilePath: \dram-web\src\api\pm\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

import request from '@/utils/request'

// 查询列表
export function getList (query) {
  return request({
    url: '/dam/item/list',
    method: 'get',
    params: query
  })
}
// 新增项目
export function addProject (data) {
  return request({
    url: '/dam/item',
    method: 'post',
    data
  })
}
// 获取项目信息
export function getProjectInfo (itemId) {
  return request({
    url: `/dam/item/${itemId}`,
    method: 'get',
  })
}
// 删除项目
export function deleteProject (itemIds) {
  return request({
    url: `/dam/item/${itemIds}`,
    method: 'delete',
  })
}
// 修改项目立项
export function editProject (data) {
  return request({
    url: '/dam/item',
    method: 'put',
    data
  })
}
// 研究
export function studyProject (data) {
  return request({
    url: '/dam/process/discuss',
    method: 'post',
    data
  })
}